import React from 'react';
import { render } from 'react-dom';
import Router from 'react-router/lib/Router'
import browserHistory from 'react-router/lib/browserHistory'
require("babel-polyfill");

require.ensure(['./router/routes'],function(require){
    var routes=require("./router/routes");
    render(
        <Router history={browserHistory}>{routes}</Router>,
        document.getElementById('content')
    )
})
